package top.cyuw.subjectsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.cyuw.subjectsystem.dto.PagingParamDto;
import top.cyuw.subjectsystem.dto.subject.SubjectCreateRequest;
import top.cyuw.subjectsystem.dto.subject.SubjectEditRequest;
import top.cyuw.subjectsystem.entity.Subject;
import top.cyuw.subjectsystem.vo.PagingVo;
import top.cyuw.subjectsystem.vo.subject.SubjectVo;

import java.util.List;
import java.util.Map;

public interface SubjectService extends IService<Subject> {

    SubjectVo getById(Integer id);

    Boolean create(SubjectCreateRequest request);

    Boolean delete(Integer id);

    Boolean edit(SubjectEditRequest request);

    PagingVo<SubjectVo> search(PagingParamDto<String> request);

    Map<String, Object> echart();

}
